package com.premadefood.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 消息中心表
 * @TableName msg_center
 */
@TableName(value ="msg_center")
@Data
public class MsgCenter implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 消息对象(我、骑手、商家)
     */
    private Integer msgPerson;

    /**
     * 消息内容(此处只记录最新的一条消息)
     */
    private String msgContent;

    /**
     * 
     */
    private Date createTime;

    /**
     * 
     */
    private Date updateTime;

    /**
     * 
     */
    @TableLogic
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}